cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(recipe-06 LANGUAGES NONE)

find_package(PythonInterp REQUIRED)

enable_testing()
add_test(
        NAME example
        COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test.py
)
set_tests_properties(example PROPERTIES TIMEOUT 5)                     # 设置超时时间